<!--  
Arkantos-web  Una aplicación web para llevar un registro de gastos.
Copyright (C) 2013 Nicolás Elias Rivera

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of 
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

You can contact me at: ynicolasy@gmail.com
-->
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:a="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich">
    
	<head>
		<title>#{messages['menu.inicie']}</title>
		<link href="css/style.css" rel="stylesheet" type="text/css" />
	</head>

	<body>
	
	<div id="document">
	
	<div id="header">
		
	</div>

	<div id="container">
	
	<div id="sidebar">
	</div>
	
	<div id="content">

	
		<div class="section">

			<div class="entry errors">
				<h:messages id="messages" errorStyle="color: red" infoStyle="color: green" globalOnly="true"/>
			</div>
			
	    <h:form id="loginForm">
        <rich:panel>
            <f:facet name="header">#{messages['menu.login']}</f:facet>
            <p>#{messages['menu.porfa']}</p>

                <h:panelGrid columns="2">
                    <h:outputLabel for="username">#{messages['menu.usr']}</h:outputLabel>
                    <h:inputText id="username"
                              value="#{credentials.username}"/>
                    <h:outputLabel for="password">#{messages['menu.psw']}</h:outputLabel>
                    <h:inputSecret id="password"
                                value="#{credentials.password}"/>
                    <h:outputLabel for="rememberMe">#{messages['menu.recordar']}</h:outputLabel>
                    <h:selectBooleanCheckbox id="rememberMe" value="#{rememberMe.enabled}"/>
                </h:panelGrid>
        </rich:panel>

        <div>
            <h:commandButton id="submit" value="#{messages['menu.login']}" action="#{identity.login}"/>
        </div>
    	</h:form>
	    
		</div>

	
	</div>
	
	</div>
	
	<div id="footer">#{messages['titulo']}</div>
	
	</div>
	</body>
</html>